<?php
session_start();

header('Content-Type: text/html; charset=iso-8859-1');

if(file_exists('config.inc.php'))
{
    include_once 'config.inc.php';
}
elseif(file_exists('conf/config.inc.php'))
{
    include_once 'conf/config.inc.php';
}
elseif(file_exists('../conf/config.inc.php'))
{
    include_once '../conf/config.inc.php';
}
elseif(file_exists('../../conf/config.inc.php'))
{
    include_once '../../conf/config.inc.php';
}

if(file_exists('core/adodb5/adodb.inc.php'))
{
    include_once 'core/adodb5/adodb.inc.php';
}
elseif(file_exists('../../core/adodb5/adodb.inc.php'))
{
    include_once '../../core/adodb5/adodb.inc.php';
}

function __autoload($classe)
{
    if(file_exists('../../../core/app.ado/'. $classe .'.class.php'))
    {
        include_once '../../../core/app.ado/'. $classe. '.class.php';
    }
    elseif(file_exists('../../core/app.ado/'. $classe .'.class.php'))
    {
        include_once '../../core/app.ado/'. $classe. '.class.php';
    }
    elseif(file_exists('../core/app.ado/'. $classe .'.class.php'))
    {
        include_once '../core/app.ado/'. $classe .'.class.php';
    }
    elseif(file_exists('core/app.ado/'. $classe .'.class.php'))
    {
        include_once 'core/app.ado/'. $classe. '.class.php';
    }
    elseif(file_exists('../models/'. $classe. '.class.php'))
    {
        include_once '../models/'. $classe. '.class.php';
    }
    elseif(file_exists('app/models/'. $classe. '.class.php'))
    {
        include_once 'app/models/'. $classe. '.class.php';
    }
    elseif(file_exists('../app/models/'. $classe. '.class.php'))
    {
        include_once '../app/models/'. $classe. '.class.php';
    }
}
?>